package stuman.util;

import android.text.Editable;

public class GPAConvert {
	
	public static double convertToGPA(Editable g){
		if (g.toString().equalsIgnoreCase("A")){return 4.00;}
		else if (g.toString().equalsIgnoreCase("A-")){return 3.66;}
		else if (g.toString().equalsIgnoreCase("B+")){return 3.33;}
		else if (g.toString().equalsIgnoreCase("B")){return 3.00;}
		else if (g.toString().equalsIgnoreCase("B-")){return 2.66;}
		else if (g.toString().equalsIgnoreCase("C+")){return 2.33;}
		else if (g.toString().equalsIgnoreCase("C")){return 2.00;}
		else if (g.toString().equalsIgnoreCase("C-")){return 1.66;}
		else if (g.toString().equalsIgnoreCase("D+")){return 1.33;}
		else if (g.toString().equalsIgnoreCase("D")){return 1.00;}
		else if (g.toString().equalsIgnoreCase("D-")){return .66;}
		else {return 0.00;}
	}

}
